<!doctype html>
<html lang="zh-cn">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>渐变波浪边框</title>
  <!--  <link rel="stylesheet" href="./styles/index.css">-->
</head>
<style>
  .coupon {
    position: relative;
    width: 400px;
    height: 160px;
    margin: 20px auto;
    background-image: radial-gradient(circle at 1px 8px, transparent 6px, #f49714 6px, #f49714 0px), radial-gradient(circle at 199px 8px, transparent 6px, #f49714 6px, #f49714 0px);
    background-size: 200px 18px;
    background-position: 0 0, 200px 0;
    background-repeat-x: no-repeat;
    font-size: 100px;
    color: #fff;
    font-weight: bold;
    line-height: 160px;
    padding-left: 60px;
    box-sizing: border-box;
    cursor: pointer;
  }
  .coupon::before {
    position: absolute;
    content: "";
    left: 240px;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed #fff;
  }
  .coupon::after {
    position: absolute;
    content: "立即领取";
    font-size: 30px;
    width: 70px;
    top: 50%;
    right: 2%;
    transform: translate(-50%, -50%);
    line-height: 40px;
    letter-spacing: 5px;
  }

  .wave {
    position: relative;
    width: 400px;
    height: 160px;
    margin: 20px auto;
    background: linear-gradient(90deg, #945700 0%, #f49714 100%);
    filter: drop-shadow(-7px 4px 3px #333);
    font-size: 100px;
    color: #fff;
    font-weight: bold;
    line-height: 160px;
    padding-left: 60px;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: -2px -2px 2px #333;
  }
  .wave::before, .wave::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
  }
  .wave::before {
    width: 10px;
    background-image: radial-gradient(circle at -5px 10px, transparent 12px, #fff 13px, #fff 0px);
    background-size: 20px 20px;
    background-position: 0 15px;
  }
  .wave::after {
    width: 15px;
    background-image: radial-gradient(circle at 15px 10px, #fff 12px, transparent 13px, transparent 0px);
    background-size: 20px 40px;
    background-position: 0 15px;
  }

</style>
<body>
<div class="coupon">50</div>
<div class="wave">50</div>
</body>
</html>
